<template>
	<div>
		<el-button type="success" class="mr-10" @click="edit()">修改</el-button>
		<el-popconfirm title="确定要删除吗？" @confirm="del()">
			<el-button type="danger" slot="reference" @click.native.stop>删除</el-button>
		</el-popconfirm>
	</div>
</template>

<script>
export default {
	name: "EditOrDel",

	data() {
		return {};
	},

	mounted() {},

	methods: {
		edit(){
			this.$emit('edit')
		},
		del(){
			this.$emit('del')
		}
	},
};
</script>

<style lang="scss" scoped></style>
